package com.zhichat.web.dto.dao;

import lombok.Getter;

import java.io.Serializable;

/**
 * @ClassName: ApplyInfoListQuery
 * @Description: 查询申请信息Query对象
 * @Author: 团长九哥 https://space.bilibili.com/602197686
 * @CreateDate: 2024/11/17 22:07
 */
@Getter
public class ApplyInfoListQuery implements Serializable {
    private Long receiveId;
    private Integer pageSize;
    private Integer pageNumber;
    private Integer start;

    public ApplyInfoListQuery(Long receiveId, Integer pageSize, Integer pageNumber) {
        this.receiveId = receiveId;
        this.pageSize = pageSize;
        this.pageNumber = pageNumber;
    }

    public Integer getStart() {
        return (pageNumber - 1) * pageSize;
    }
}
